widget: Make sure we're not calling _get_parent on NULL
authorTimm Bäder <mail@baedert.org>
Wed, 10 May 2017 16:08:43 +0000 (18:08 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 25 May 2017 14:25:59 +0000 (16:25 +0200)
commiteef33d34d45370f8fc6da0b8be58cdf44b8507d2
tree55e22d8070c72aa0294dc4357a3bdb5da5208b17
parent34fdc51392149527cb6a4317b135734d7b15db2d
widget: Make sure we're not calling _get_parent on NULL

We already issue the first _get_parent call before even entering that
loop, so make sure `parent` is not NULL. This happens when event_widget
is already a toplevel, and this change fixes row-dragging in treeviews.
gtk/gtkwidget.c